package t1;

import java.util.List;

/**
 * 查询所有学生
 *
 */
public class SelectAllStudent {
	public void selectAllStudent(List<StudentBean> studentList) {
		for (StudentBean stu : studentList) {
			System.out.println(stu.getName() + " " + stu.getMajor());
		}
		System.out.println();
	}
}
